git-x86_64-remove-pie-check
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 23 Aug 2021 19:31:23 +0000 (20:31 +0100)
committerAurelien Jarno <aurel32@debian.org>
Mon, 23 Aug 2021 19:31:23 +0000 (20:31 +0100)
commit54222eeb98b5a9de506c2efc2115edf87a78d93f
tree12421a659863ad22d637e12eb2670bd361a77fd5
parent5528347ccc44bf80f9235506e11d4ebdeb162e73
git-x86_64-remove-pie-check

commit 115d242456de158e698ffb0f9a5fee3118e9e825
Author: Fangrui Song <maskray@google.com>
Date:   Thu Jul 8 14:26:22 2021 -0700

    x86_64: Remove unneeded static PIE check for undefined weak diagnostic

    https://sourceware.org/bugzilla/show_bug.cgi?id=21782 dropped an ld
    diagnostic for R_X86_64_PC32 referencing an undefined weak symbol in
    -pie links.  Arguably keeping the diagnostic like other ports is more
    correct, since statically resolving movl foo(%rip), %eax to the
    link-time zero address produces a corrupted output.

    It turns out that --enable-static-pie builds do not depend on the ld
    behavior. GCC generates GOT indirection for weak declarations for
    -fPIE/-fPIC, so what ld does with the PC-relative relocation doesn't
    really matter.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Gbp-Pq: Topic amd64
Gbp-Pq: Name git-x86_64-remove-pie-check.diff
sysdeps/x86_64/configure
sysdeps/x86_64/configure.ac